package functionInterfaces;

public class FunctionInterfaceDemo {

    public FunctionInterfaceDemo(A a){
        a.a();
    }

    public static void main(String[] args) {
        ((A) () -> {
            System.out.println("aaaaaaaaaaaaa");
        }).a();


        new FunctionInterfaceDemo(()-> System.out.println("aaaaaa"));

    }
}

@FunctionalInterface
interface A {

    void a();

}

